<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function to_facebook_array($facebook_object) {
    return array(
        'guid'      => $facebook_object->id,
        'id'        => $facebook_object->id,
        'firstname' => $facebook_object->first_name,
        'lastname'  => $facebook_object->last_name,
        'hometown'  => '',
        'type'      => 'Facebook'
    );
}

function to_gamecenter_array($gamecenter_object) {
    return array(
        'guid'      => $gamecenter_object->id,
        'id'        => $gamecenter_object->id,
        'alias'     => $facebook_object->alias,
        'type'      => 'Gamecenter'
    );
}

function to_twitter_array($twitter_object) {
    return array(
        'guid'      => $twitter_object->id,
        'id'        => $twitter_object->id,
        'alias'     => $twitter_object->alias,
        'type'      => 'Twitter'
    );
}

?>
